home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / jumping_jelly_beans.swf / scripts / DefineSprite_709 / frame_1 / DoAction.as
Text File  |  2006-11-29  |  335b  |  19 lines

  1. accel = 0.7;
  2. convert = 0.5;
  3. onenterframe = function()
  4. {
  5.    xs = xs * accel + (r.time - bar._xscale) * convert;
  6.    bar._xscale += xs;
  7.    if(r.time < 25)
  8.    {
  9.       clock.gotoAndStop(2);
  10.       frame.frame2.gotoAndStop(2);
  11.    }
  12.    else
  13.    {
  14.       clock.gotoAndStop(1);
  15.       frame.frame2.gotoAndStop(1);
  16.    }
  17. };
  18. stop();
  19.